<%@ page contentType="text/html; charset=utf-8" %>


<tr>
  <td>
    <table width="100%" border="0" cellpadding="0" cellspacing="5">
      <tr>
        <td>
          <table width="100%" border="0" cellpadding="0" cellspacing="0">
            <tr>
              <td class="dashTopLeft"><img src="images/spacer.gif" width="7" height="7"></td>
              <td class="dashTop" width=100%><img src="images/spacer.gif" width="7" height="7"></td>
              <td class="dashTopRight"><img src="images/spacer.gif" width="7" height="7"></td>
            </tr>
            <tr>
              <td class="dashLeft"><img src="images/spacer.gif" width="7" height="7"></td>
              <td align="center">
                <table width="100%" border="0" cellpadding="0" cellspacing="3">
                  <form id="searchForm" action="<c:url value='searchRuleTemplateByPage.html' />" method="get">
			            <tr>
	                   <td width="114" height="20" class="globalTextBlueBold">通信规则模板查询</td>
	                   <td>&nbsp;</td>
	                   <td>&nbsp;</td>
			            </tr>
                  <tr>
                    <td width="114" height="20" class="globalText">通信规则模板编号</td>
                    <td height="20" class="globalText">
                    	<input type="text" class="txtbox" size="20" id="ruleTemplateIdTxt" name="ruleTemplateIdTxt" value=""/>
                    </td>
                  </tr>
                  <tr>
                    <td align="left"><input type="button" id="searchBtn" class="btnStyle" value="  查询  "></td>
                  </tr>
                  </form>
                </table>
              </td>
              <td class="dashRight"><img src="images/spacer.gif" width="7" height="7"></td>
            </tr>
            <tr>
              <td class="dashBottomLeft"><img src="images/spacer.gif" width="7" height="7"></td>
              <td class="dashBottom" width=100%><img src="images/spacer.gif" width="7" height="7"></td>
              <td class="dashBottomRight"><img src="images/spacer.gif" width="7" height="7"></td>
            </tr>
          </table>
        </td>
      </tr>
    </table>
  </td>
</tr>

<script type="text/javascript">
	$(document).ready(function() {
    var searchBtn = $("#searchBtn");
    var ruleTemplateIdTxt = $("#ruleTemplateIdTxt");
    var searchForm = $("#searchForm");
		
    ruleTemplateIdTxt.keypress(function(e) {
    	if (e.which == 13) {//回车按下
    		var ruleTemplateIdTxtVal =  $(this).val().trim();
    		ruleTemplateIdTxt.val(ruleTemplateIdTxtVal);
		    doSearch();
    		return false;
    	}
    });
	
    searchBtn.click(function() {
    	doSearch();						  
		});

		function doSearch() {
			var ruleTemplateIdTxtVal =  ruleTemplateIdTxt.val().trim();
			ruleTemplateIdTxt.val(ruleTemplateIdTxtVal);
    	
	    searchForm.submit();
		}
	});
</script>